package com.syf.test.kafka.service.enums;

import com.syf.core.service.enums.ResponseFormat;

/**
 * 服务响应码枚举
 */
public enum ResponseFormatEnums implements ResponseFormat {
    /**
     * 消息处理异常
     */
    MESSAGE_PROCESS_EXCEPTION("800001", "消息处理异常：{}"),

    /**
     * 消息格式错误
     */
    MESSAGE_FORMAT_ERROR("800002", "消息格式错误：{}");

    /**
     * 响应码
     */
    private final String respCode;

    /**
     * 响应信息格式
     */
    private final String respMsgFmt;

    ResponseFormatEnums(String respCode, String respMsgFmt) {
        this.respCode = respCode;
        this.respMsgFmt = respMsgFmt;
    }

    @Override
    public String getRespCode() {
        return respCode;
    }

    @Override
    public String getRespMsgFmt() {
        return respMsgFmt;
    }
} 